package com.zch.house.service;

import java.sql.Date;
import java.util.List;

import com.zch.house.entity.FlatPlay;

public interface FlatPlayService {
	/**
	 * 根据条件模糊查询相应的公寓活动信息
	 * @param sql
	 * @param params
	 * @return
	 */
	public List<FlatPlay> getAllFlatPlayByPage(Date startDate,Date endDate,String topic,int pageIndex);
	/**
	 * 获得查询的总页码
	 * @param sql
	 * @param params
	 * @return
	 */
	public int getTotalCount(Date startDate,Date endDate,String topic);
	/**
	 * 根据公寓活动的唯一标识获得公寓活动信息
	 * @param id
	 * @return
	 */
	public FlatPlay getFlatPlayById(int id);
	/**
	 * 添加公寓活动信息
	 * @param flatPlay
	 * @return
	 */
	public boolean addFlatPlay(FlatPlay flatPlay);
	/**
	 * 根据公寓活动的唯一标识删除公寓活动信息
	 * @param id
	 * @return
	 */
	public boolean deleteFlatPlay(int id);
	/**
	 * 修改公寓活动信息
	 * @param flatPlay
	 * @return
	 */
	public boolean updateFlatPlay(FlatPlay flatPlay);
}
